TreeGridLoaded ({ /* JSONP header, to be possible to load from xxx_Jsonp data source */ 
   "Cfg" : { "id": "MasterTree", "DetailOn": "1", "DetailExpand": "1", "SuppressCfg": "1", "MainCol": "SURNAME", "StandardFilter": "2", "Size": "Low", "Undo": "1"   }, 
   "Cols" : [ 
      { "Name": "SURNAME", "Type": "Text", "GroupWidth": "1", "Width": "165"   }, 
      { "Name": "NAME", "Type": "Text"   }, 
      { "Name": "AGE", "Type": "Int"   }, 
      { "Name": "MARRIED", "Type": "Bool"   }  
   ], 
   "Panel" : { "Copy": "1"   }, 
   "Def" : [ 
      // The default row for all master rows automatically defines also all detail children and copies the values from master rows 
      { "Name": "MAIN", "Detail": "DetailTree", "Expanded": "1", "CanExpand": "1", "AddDefChildren": "2", 
         "NAMECopyTo": "Child_0,V1", 
         "SURNAMECopyTo": "Child_0,V2", 
         "AGECopyTo": "Child_1,V", 
         "MARRIEDCopyTo": "Child_2,V", 
         "CDef": "MAIN", 
         "Items": [
         { "Def": "DetailName", "N": "Name", "V1CopyTo": "Parent,NAME,Child_0,V", "V2CopyTo": "Parent,SURNAME,Child_1,V", "Calculated": "1", "CalcOrder": "V", "VFormula": "Row.V1+\" \"+Row.V2"   }, 
         { "Def": "Detail", "N": "Age", "VType": "Int", "VAlign": "Left", "VCopyTo": "Parent,AGE"   }, 
         { "Def": "Detail", "N": "Married", "VType": "Bool", "VAlign": "Left", "VCopyTo": "Parent,MARRIED"   }  
      ]}, 
      { "Name": "Detail", "Visible": "0", "CanFilter": "0"   }, 
      { "Name": "DetailName", "Visible": "0", "CanFilter": "0", "Items": [
         { "Def": "Detail", "N": "FirstName", "VCopyTo": "Parent,V1"   }, 
         { "Def": "Detail", "N": "Surname", "VCopyTo": "Parent,V2"   }  
      ]}, 
      { "Name": "Group", "AggChildren": "1", "Expanded": "1", "CanFilter": "2"   }  
   ], 
   "Root" : { "CDef": "MAIN"   }, 
   "Header" : { "NAME": "First name"   }, 
   "Head" : [ 
      { "Kind":"Filter", 
         "NAMECanEdit": "0", "NAMEShowMenu": "0", "NAMEButton": "Defaults", "NAMEDefaults": "|*FilterOff|*RowsDefMAIN", "NAMERange": "1", 
         "SURNAMECanEdit": "0", "SURNAMEShowMenu": "0", "SURNAMEButton": "Defaults", "SURNAMEDefaults": "|*FilterOff|*RowsDefMAIN", "SURNAMERange": "1"  
          }  
   ], 
   "Foot" : [ 
      { "Calculated": "1", "MenuName": "Summary", 
         "NAME": "Summary", "NAMECanEdit": "0", 
         "SURNAMECanEdit": "0", 
         "AGEFormula": "min()+\" - \"+max()", "AGEType": "Text", "AGEAlign": "Right", 
         "MARRIEDFormula": "count(\"MARRIED\",\"MARRIED\")+\" / \"+count()", "MARRIEDType": "Text", "MARRIEDAlign": "center"  
          }  
   ], 
   "Solid" : [ 
      { "Kind":"Toolbar1", "Cells": "SHOW,GROUP", 
         "SHOWType": "Select", "SHOWLabel": "Show detail on", "SHOWWidth": "80", 
         "SHOWDefaults": "|Focus|Click|Double click", "SHOW": "Focus", 
         "SHOWOnChange": "Grid.DetailOn = Grid.GetDefaultsIndex(Row,Col,Value) + 1", 

         "GROUPType": "Bool", "GROUPLabelRight": "Group rows by Surname", 
         "GROUPOnChange": "Grid.DoGrouping(Value?\"SURNAME\":\"\")"  
          }  
   ], 
   "Actions" : { "OnClickButtonAdd": "AddRowEnd"   }, 
   "Toolbar" : { "Sort": "0", "Calc": "0", "Help": "0", "Debug": "0", "Kind": "Toolbar2"   }, 
   "Body" : [ 
      [ 
         { "NAME": "James", "SURNAME": "Jackson", "AGE": "24", "MARRIED": "0"   }, 
         { "NAME": "Daniel", "SURNAME": "Moore", "AGE": "38", "MARRIED": "1", "Items": [
            { "NAME": "Lisa", "SURNAME": "Moore", "AGE": "12", "MARRIED": "0"   }, 
            { "NAME": "Peter", "SURNAME": "Moore", "AGE": "10", "MARRIED": "0"   }  
         ]}, 
         { "NAME": "Nancy", "SURNAME": "Allen", "AGE": "65", "MARRIED": "1", "Items": [
            { "NAME": "John", "SURNAME": "Allen", "AGE": "42", "MARRIED": "1", "Items": [
               { "NAME": "John", "SURNAME": "Allen", "AGE": "22", "MARRIED": "0", "Items": [
                  { "NAME": "John", "SURNAME": "Allen", "AGE": "1", "MARRIED": "0"   }, 
                  { "Def": "R", "NAME": "???", "SURNAME": "Allen", "AGE": "0", "MARRIED": "0"   }  
               ]}, 
               { "NAME": "Maria", "SURNAME": "Robbins", "AGE": "22", "MARRIED": "1", "Items": [
                  { "NAME": "Nancy", "SURNAME": "Robbins", "AGE": "3", "MARRIED": "0"   }, 
                  { "NAME": "Herbert", "SURNAME": "Robbins", "AGE": "3", "MARRIED": "0"   }  
               ]}, 
            ]}, 
            { "NAME": "Maria", "SURNAME": "Allen", "AGE": "45", "MARRIED": "0"   }  
         ]}, 
         { "NAME": "Benjamin", "SURNAME": "Jackson", "AGE": "33", "MARRIED": "1", "Items": [
            { "NAME": "Oscar", "SURNAME": "Jackson", "AGE": "10", "MARRIED": "0"   }  
         ]}, 
      ], 
   ], 
}) /* End of JSONP header */ 